package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entity.CommentResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jxau_scf
 * @date 2021/8/30 - 10:15
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping("/payment/getPaymentById/{id}")
    CommentResult getPaymentById(@PathVariable("id") Long id);
}
